﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SalesOrder.aspx.cs" Inherits="WMS6.Web.OrderManagement.SalesOrder" meta:resourcekey="Page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>SalesOrder</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />
    <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>
    <script src="../Js/util.js" type="text/javascript"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>
    <script src="../Js/checkbox.js" type="text/javascript"></script>
    <script src="../Js/Verification.js" type="text/javascript"></script>
    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>
    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initEditNewPage();
        }
        
        function newOrder()
        {
            var from = document.getElementById("hdnFrom").value;
            window.location.href = "SalesOrder.aspx?from="+escape(from);
            return false;
        }
        
         //弹出窗口选择货主
        function selectOwner()
        {
            var rtnValue = popModalWindow('../Configuration/OwnerQuery.aspx?action=txtOwnerID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtOwnerID").focus();
                document.getElementById("txtOwnerID").value = rtnValue;
            }
        }
        //弹出收货人代码
        function selectConsigneeID()
        {
            var rtnValue = popModalWindow('../Configuration/CustomerQuery.aspx?action=txtConsigneeID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtConsigneeID").focus();
                document.getElementById("txtConsigneeID").value = rtnValue;
                document.getElementById("hdnPageType").value = "1"; //标识符，标识本次操作是否会导致页面刷新 默认0  1代表会刷新
                __doPostBack("txtConsigneeID_TextChanged", "");   
            }
        }
        //弹出收货人代码
        function selectCustomerID()
        {
            var rtnValue = popModalWindow('../Configuration/CustomerQuery.aspx?action=txtConsigneeID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtCustomerID").focus();
                document.getElementById("txtCustomerID").value = rtnValue;
                document.getElementById("hdnPageType").value = "1"; //标识符，标识本次操作是否会导致页面刷新 默认0  1代表会刷新
                __doPostBack("txtCustomerID_TextChanged", "");   
            }
        }
        //弹出付款方代码
        function selectPayMentID()
        {
            var rtnValue = popModalWindow('../Configuration/BillingEntityQuery.aspx?action=txtInco_Terms','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtBillToID").focus();
                document.getElementById("txtBillToID").value = rtnValue;
                  document.getElementById("hdnPageType").value = "1"; //标识符，标识本次操作是否会导致页面刷新 默认0  1代表会刷新
                __doPostBack("txtBillToID_TextChanged","");
            }
        }
        
        //弹出承运商代码
        function selectCarrierID()
        {
            var rtnValue = popModalWindow('../Configuration/CarrierQuery.aspx?action=txtCarrierID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtCarrierID").focus();
                document.getElementById("txtCarrierID").value = rtnValue;
            }
        }
        
        function showAction()
		{	
			var pos = getElementPos("btnAction");	
			document.getElementById("actionDiv").style.top = pos.y+17;
			document.getElementById("actionDiv").style.left = pos.x;  			
			document.getElementById("hiddenFlag").value = '1';
		}
		function hiddenDiv() {
		    var flag = document.getElementById("hiddenFlag").value
		    if (flag == "1") {
		        document.getElementById("actionDiv").style.display = "block";
		        document.getElementById("hiddenFlag").value = '0';
		    }
		    else {
		        document.getElementById("actionDiv").style.display = "none";
		    }
		}

		//显示 报表 DIV
		function showReport() {
		    var pos = getElementPos("htmlbtnReport");
		    document.getElementById("reportDiv").style.top = pos.y + 17;
		    document.getElementById("reportDiv").style.left = pos.x;
		    document.getElementById("hiddenReportFlag").value = '1';
		}
		//隐藏 报表 DIV
		function hiddenReportDiv() {
		    var flag = document.getElementById("hiddenReportFlag").value
		    if (flag == "1") {
		        document.getElementById("reportDiv").style.display = "block";
		        document.getElementById("hiddenReportFlag").value = '0';
		    }
		    else {
		        document.getElementById("reportDiv").style.display = "none";
		    }
		}
		//弹出 打印 采购订单 的窗口
		function popPrintSalesOrder() {
		    var orderID = document.getElementById("txtOrderID").value;
		     var OwnerID= document.getElementById("txtOwnerID").value;
		    window.open('../Common/PrintReport.aspx?rtype=printSalesOrder&orderID=' +escape(orderID)+'&OwnerID='+escape(OwnerID), 'PrintWindow', 'width=860,height=610,top=50,left=50,toolbar=no,menubar=no,scrollbars=yes, resizable=yes,location=no,status=no');
		}
       
	 function confirmMsg(code) 
	 {
	     if (code == "F7100_001") 
	     {
	         if (confirm('<%=GetGlobalMsgResource("F7100_001") %>')) 
	         {
		            return true;
		        }
		        else {
		            return false;
		        }
		    }
		 else if (code == "F7100_010") 
	     {
	         if (confirm('<%=GetGlobalMsgResource("F7100_010") %>'))
	          {
		            return true;
		        }
		        else {
		            return false;
		        }
		    }
		else if (code == "F7100_034") 
	     {
	         if (confirm('<%=GetGlobalMsgResource("F7100_034") %>'))
	          {
		            return true;
		      }
            else 
              {
		            return false;
		      }
		    }
		else if (code == "F7100_035") 
	     {
	         if (confirm('<%=GetGlobalMsgResource("F7100_035") %>'))
	          {
		            return true;
		        }
		        else {
		            return false;
		        }
		    }
		else if (code == "F7100_036") 
	     {
	         if (confirm('<%=GetGlobalMsgResource("F7100_036") %>'))
	          {
		            return true;
		        }
		        else {
		            return false;
		        }
		    }
		    else if (code == "C010") {
		    if (confirm('<%=GetGlobalMsgResource("C010") %>')) {
		            return true;
		        }
		        else {
		            return false;
		        }
		    }
		}
		
		function quickInput()
		{
		    var from = document.getElementById("hdnFrom").value;
		    window.location.href = "OnLineSO.aspx?from="+escape(from);		    
		}
    </script>

    <style type="text/css">
        .style1
        {
            height: 23px;
        }
    </style>
</head>
<body>
    <form id="F3021" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblSalesOrder" runat="server" CssClass="label_header" 
                            Text="销售订单" meta:resourcekey="lblSalesOrder"></asp:Label>
                    </td>
                    <td>
                        <asp:Button ID="btnGoBack" runat="server" CssClass="button" Text="<%$ Resources:ButtonResource,btnGoBack %>"
                            CausesValidation="False" OnClick="btnGoBack_Click" Enabled="False" 
                            meta:resourcekey="btnGoBack" />
                    </td>
                    <td>
                        <asp:Button ID="btnNew" runat="server" CssClass="button" Text="<%$ Resources:ButtonResource,btnNew %>"
                            Enabled="False" AccessKey="n" OnClientClick="newOrder();return false;" 
                            meta:resourcekey="btnNew" />
                    </td>
                    <td>
                        <asp:Button ID="btnSave" runat="server" CssClass="button" Text="<%$ Resources:ButtonResource,btnSave %>"
                            Enabled="False" AccessKey="s" OnClick="btnSave_Click" 
                            OnClientClick="SethdnPageQty('hdnPageQty');" 
                            meta:resourcekey="btnSave" />
                    </td>
                    <td>
                        <asp:Button ID="btnDelete" runat="server" CssClass="button" Text="<%$ Resources:ButtonResource,btnDelete %>"
                            Enabled="False" AccessKey="d"    OnClientClick="javascript:confirmMsg('F7100_001');"
                            OnClick="btnDelete_Click" meta:resourcekey="btnDelete" />
                    </td>
                    <td>
                        <asp:Button ID="btnCopy" runat="server" CssClass="button" Text="<%$ Resources:ButtonResource,btnCopy %>"
                            AccessKey="c" meta:resourcekey="btnCopy" />
                    </td>
                    <td>
                        <asp:Button ID="btnRefresh" runat="server" CssClass="button" Text="<%$ Resources:ButtonResource,btnRefresh %>"
                            Enabled="False" AccessKey="r" meta:resourcekey="btnRefresh" />
                    </td>
                    <td>
                        <asp:Button ID="btnQuicklyInput" runat="server" CssClass="button" Text="<%$ Resources:ButtonResource,btnQuicklyInput %>"
                            Enabled="true" AccessKey="q" OnClientClick="quickInput();return false;"/>
                    </td>
                    <td>
                        <input id="btnAction" type="button" runat="server" value="<%$Resources:ButtonResource,btnAction%>"
                            class="button" onclick="showAction(); return false;" />
                    </td>
                    <td>
                        <input id="htmlbtnReport" type="button" runat="server" value="<%$Resources:ButtonResource,btnReport%>"
                            class="button" onclick="showReport();" />
                    </td>
                </tr>
            </table>
        </div>
        <%--<asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>--%>
        <div>
            <asp:Label ID="lblMsg" runat="server" CssClass="label_message" meta:resourcekey="lblMsg"></asp:Label>
        </div>
        <div id="div_menu">
            <div style="float: left; width: 8px;">
                <div class="tabL" id="divL1">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur" onclick="setTab('one',1,5)"
                id="divM1">
                <asp:Label ID="one1" CssClass="hover" runat="server" meta:resourcekey="one1">常规</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR" id="divR1">
                </div>
            </div>
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL2">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',2,5);"
                id="divM2">
                <asp:Label ID="one2" CssClass="navigationlabel" runat="server" meta:resourcekey="one2">&nbsp;收货人&nbsp;</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR2">
                </div>
            </div>
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL3">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',3,5);"
                id="divM3">
                <asp:Label ID="one3" CssClass="navigationlabel" runat="server" meta:resourcekey="one3">&nbsp;账单地址&nbsp;</asp:Label></div>
            <div style="float: left; margin-right: 3px;">
                <div class="tabR_1" id="divR3">
                </div>
            </div>
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL4">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',4,5);"
                id="divM4">
                <asp:Label ID="one4" CssClass="navigationlabel" runat="server" meta:resourcekey="one4">其它</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR4">
                </div>
            </div>
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL5">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',5,5);"
                id="divM5">
                <asp:Label ID="one5" CssClass="navigationlabel" runat="server" meta:resourcekey="one5">订单行</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR5">
                </div>
            </div>
        </div>
        <div id="div_content">
            <div id="con_one_1" style="display: block;">
                <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblOrderID" runat="server" CssClass="label" Text="销售订单号" meta:resourcekey="lblOrderID"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblStatus" runat="server" CssClass="label" Text="状态" meta:resourcekey="lblStatus"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblTye" runat="server" CssClass="label" Text="订单类型" meta:resourcekey="lblTye"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblOrderDate" runat="server" CssClass="label" Text="订单日期" meta:resourcekey="lblOrderDate"></asp:Label><font
                                color="red">*</font>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtOrderID" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtOrderID" ></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:DropDownList ID="ddlStatus" runat="server" CssClass="mediumselectbox" Enabled="False"
                                meta:resourcekey="ddlStatus">
                            </asp:DropDownList>
                        </td>
                        <td width="180px">
                            <asp:DropDownList ID="ddlType" runat="server" CssClass="mediumselectbox"  meta:resourcekey="ddlType">
                            </asp:DropDownList>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtOrderDate" runat="server" CssClass="textbox" onblur="Javascript:dataVer._IsTime(this,'lblMsg')"
                                meta:resourcekey="txtOrderDate"></asp:TextBox><img src="../Images/calendar.gif" class="img" alt="请选择日期" onclick="setday(this,txtOrderDate)" />
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblOwnerID" runat="server" CssClass="label" Text="货主代码" meta:resourcekey="lblOwnerID"></asp:Label><font color="red">*</font>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblCustomerID" runat="server" CssClass="label" Text="客户代码" meta:resourcekey="lblCustomerID"></asp:Label><font color="red">*</font>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblReferenceNum" runat="server" CssClass="label" Text="外部订单号" meta:resourcekey="lblReferenceNum"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblRequestedDeliveryDate" runat="server" CssClass="label" Text="要求到货日期" meta:resourcekey="lblRequestShipDate"></asp:Label><font color="red">*</font>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtOwnerID" runat="server" CssClass="textbox" meta:resourcekey="txtOwnerID"></asp:TextBox><img
                                src="../Images/icon_find.gif" id="imgOwnerID" runat="server" alt="select one item"
                                class="img" onclick="selectOwner();" />
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtCustomerID" runat="server" CssClass="textbox"  
                                AutoPostBack="True" OnTextChanged="txtCustomerID_TextChanged" 
                                meta:resourcekey="txtCustomerID"  ></asp:TextBox><img src="../Images/icon_find.gif"
                                    alt="select one item" id="img1" runat="server" class="img" onclick="selectCustomerID()" />
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtReferenceNum" runat="server" CssClass="textbox" meta:resourcekey="txtReferenceNum"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtRequestedDeliveryDate" runat="server" CssClass="textbox" 
                                onblur="Javascript:dataVer._IsTime(this,'lblMsg')" meta:resourcekey="txtRequestedDeliveryDate"
                                ></asp:TextBox><img src="../Images/calendar.gif" class="img" alt="请选择日期" onclick="setday(this,txtRequestedDeliveryDate)" />
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblPriority" runat="server" CssClass="label" Text="优先级" meta:resourcekey="lblPriority"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblTotalQty" runat="server" CssClass="label" Text="总订购量" meta:resourcekey="lblTotalQty"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblTransportMode" runat="server" CssClass="label" Text="运输方式" 
                                meta:resourcekey="lblTransportMode" ></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblActualShipDate" runat="server" CssClass="label" Text="实际发货日期" meta:resourcekey="lblActualShipDate"></asp:Label><font
                                color="red">*</font>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:DropDownList ID="ddlPriority" runat="server" CssClass="mediumselectbox" meta:resourcekey="ddlPriority">
                            </asp:DropDownList>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtTotalQty" runat="server" CssClass="textbox" meta:resourcekey="txtTotalQty"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:DropDownList ID="ddlTransportMode" runat="server" 
                                CssClass="mediumselectbox" meta:resourcekey="ddlTransportMode" >
                            </asp:DropDownList>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtActualShipDate" runat="server" CssClass="textbox" onblur="Javascript:dataVer._IsTime(this,'lblMsg')"
                                meta:resourcekey="txtActualShipDate" Enabled="False"></asp:TextBox><img src="../Images/calendar.gif" class="img" alt="请选择日期" />
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                        </td>
                        <td width="180px">
                        </td>
                        <td width="180px"><asp:Label ID="lblPaymentMode" runat="server" CssClass="label" 
                                Text="付款方式" meta:resourcekey="lblPaymentMode" ></asp:Label></td>
                        <td width="180px">
                            <asp:Label ID="lblDeliveryDate" runat="server" CssClass="label" Text="到货日期" 
                                meta:resourcekey="lblDeliveryDate" ></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                        </td>
                        <td width="180px">
                        </td>
                        <td width="180px">
                            <asp:DropDownList ID="ddlPaymentMode" runat="server" CssClass="mediumselectbox" 
                                meta:resourcekey="ddlPaymentMode">
                            </asp:DropDownList>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtDeliveryDate" runat="server" CssClass="textbox" onblur="Javascript:dataVer._IsTime(this,'lblMsg')"
                                Enabled="False" meta:resourcekey="txtDeliveryDate"></asp:TextBox><img src="../Images/calendar.gif" class="img" alt="请选择日期" />
                        </td>
                    </tr>
                    <tr style="height: 10px;">
                        <td width="180px">
                        </td>
                    </tr>
                </table>
            </div>
            <div id="con_one_2" style="display: none;">
                <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblOrderID1" runat="server" CssClass="label" Text="订单号" meta:resourcekey="lblOrderID"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblConsigneeID" runat="server" CssClass="label" Text="收货人代码" meta:resourcekey="lblConsigneeID"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblCompany" runat="server" CssClass="label" Text="收货人名称" meta:resourcekey="lblCompany"></asp:Label>
                        </td>
                        <td width="180px">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtOrderID1" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtOrderID1" Enabled="False"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtConsigneeID" runat="server" CssClass="textbox" 
                                AutoPostBack="True" OnTextChanged="txtConsigneeID_TextChanged" 
                                meta:resourcekey="txtConsigneeID"  ></asp:TextBox><img src="../Images/icon_find.gif"
                                    alt="select one item" id="imgConsigneeID" runat="server" class="img" onclick="selectConsigneeID()" />
                        </td>
                        <td colspan="2">
                            <asp:TextBox ID="txtC_Company" runat="server" CssClass="largetextbox" meta:resourcekey="txtC_Company"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblC_City" runat="server" CssClass="label" Text="城市" meta:resourcekey="lblC_City"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblC_Prov" runat="server" CssClass="label" Text="省份" meta:resourcekey="lblC_Prov"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblC_Contact1" runat="server" CssClass="label" Text="联系人1" meta:resourcekey="lblC_Contact1"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblC_Contact2" runat="server" CssClass="label" Text="联系人2" meta:resourcekey="lblC_Contact2"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtC_City" runat="server" CssClass="textbox" meta:resourcekey="txtC_City"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtC_Prov" runat="server" CssClass="textbox" meta:resourcekey="txtC_Prov"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtC_Contact1" runat="server" CssClass="textbox" meta:resourcekey="txtC_Contact1"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtC_Contact2" runat="server" CssClass="textbox" meta:resourcekey="txtC_Contact2"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblC_Zip" runat="server" CssClass="label" Text="邮编" meta:resourcekey="lblC_Zip"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblC_Country" runat="server" CssClass="label" Text="国家" meta:resourcekey="lblC_Country"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblC_Phone1" runat="server" CssClass="label" Text="电话1" meta:resourcekey="lblC_Phone1"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblC_Phone2" runat="server" CssClass="label" Text="电话2" meta:resourcekey="lblC_Phone2"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtC_Zip" runat="server" CssClass="textbox" meta:resourcekey="txtC_Zip"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtC_Country" runat="server" CssClass="textbox" meta:resourcekey="txtC_Country"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtC_Phone1" runat="server" CssClass="textbox" meta:resourcekey="txtC_Phone1"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtC_Phone2" runat="server" CssClass="textbox" meta:resourcekey="txtC_Phone2"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px" colspan="2">
                            <asp:Label ID="lblC_Address" runat="server" CssClass="label" Text="地址" meta:resourcekey="lblC_Address"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblC_Fax1" runat="server" CssClass="label" Text="传真1" meta:resourcekey="lblC_Fax1"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblC_Fax2" runat="server" CssClass="label" Text="传真2" meta:resourcekey="lblC_Fax2"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" rowspan="3">
                            <asp:TextBox ID="txtC_Address" runat="server" CssClass="largetextarea" TextMode="MultiLine"
                                meta:resourcekey="txtC_Address"></asp:TextBox>
                        </td>
                        <td width="180px" class="style1">
                            <asp:TextBox ID="txtC_Fax1" runat="server" CssClass="textbox" meta:resourcekey="txtC_Fax1"></asp:TextBox>
                        </td>
                        <td width="180px" class="style1">
                            <asp:TextBox ID="txtC_Fax2" runat="server" CssClass="textbox" meta:resourcekey="txtC_Fax2"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblC_Email1" runat="server" CssClass="label" Text="电子邮件1" meta:resourcekey="lblC_Email1"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblC_Email2" runat="server" CssClass="label" Text="电子邮件2" meta:resourcekey="lblC_Email2"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtC_Email1" runat="server" CssClass="textbox" meta:resourcekey="txtC_Email1"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtC_Email2" runat="server" CssClass="textbox" meta:resourcekey="txtC_Email2"></asp:TextBox>
                        </td>
                    </tr>
                    <tr style="height: 10px;">
                        <td width="180px">
                        </td>
                    </tr>
                </table>
            </div>
            <div id="con_one_3" style="display: none;">
                <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblOrderID2" runat="server" CssClass="label" Text="订单号" meta:resourcekey="lblOrderID"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblBillToID" runat="server" CssClass="label" Text="付款方代码" meta:resourcekey="lblBillToID"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblB_Company" runat="server" CssClass="label" Text="付款方名称" meta:resourcekey="lblB_Company"></asp:Label>
                        </td>
                        <td width="180px">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtOrderID2" runat="server" CssClass="textbox" Enabled="False" 
                                meta:resourcekey="txtOrderID2"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtBillToID" runat="server" CssClass="textbox" 
                              AutoPostBack="True" OnTextChanged="txtBillToID_TextChanged" 
                                meta:resourcekey="txtBillToID"></asp:TextBox><img src="../Images/icon_find.gif"
                                    alt="select one item" class="img" id="imgBillToID" runat="server" onclick="selectPayMentID();" />
                        </td>
                        <td colspan="2">
                            <asp:TextBox ID="txtB_Company" runat="server" CssClass="largetextbox" meta:resourcekey="txtB_Company"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblB_City" runat="server" CssClass="label" Text="城市" meta:resourcekey="lblB_City"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblB_Prov" runat="server" CssClass="label" Text="省份" meta:resourcekey="lblB_Prov"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblB_Contact1" runat="server" CssClass="label" Text="联系人1" meta:resourcekey="lblB_Contact1"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblB_Contact2" runat="server" CssClass="label" Text="联系人2" meta:resourcekey="lblB_Contact2"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtB_City" runat="server" CssClass="textbox" meta:resourcekey="txtB_City"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtB_Prov" runat="server" CssClass="textbox" meta:resourcekey="txtB_Prov"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtB_Contact1" runat="server" CssClass="textbox" meta:resourcekey="txtB_Contact1"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtB_Contact2" runat="server" CssClass="textbox" meta:resourcekey="txtB_Contact2"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblB_Zip" runat="server" CssClass="label" Text="邮编" meta:resourcekey="lblB_Zip"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblB_Country" runat="server" CssClass="label" Text="国家" meta:resourcekey="lblB_Country"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblB_Phone1" runat="server" CssClass="label" Text="电话1" meta:resourcekey="lblB_Phone1"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblB_Phone2" runat="server" CssClass="label" Text="电话2" meta:resourcekey="lblB_Phone2"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtB_Zip" runat="server" CssClass="textbox" meta:resourcekey="txtB_Zip"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtB_Country" runat="server" CssClass="textbox" meta:resourcekey="txtB_Country"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtB_Phone1" runat="server" CssClass="textbox" meta:resourcekey="txtB_Phone1"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtB_Phone2" runat="server" CssClass="textbox" meta:resourcekey="txtB_Phone2"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px" colspan="2">
                            <asp:Label ID="lblB_Address" runat="server" CssClass="label" Text="地址" meta:resourcekey="lblB_Address"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblB_Fax1" runat="server" CssClass="label" Text="传真1" meta:resourcekey="lblB_Fax1"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblB_Fax2" runat="server" CssClass="label" Text="传真2" meta:resourcekey="lblB_Fax2"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" rowspan="3">
                            <asp:TextBox ID="txtB_Address" runat="server" CssClass="largetextarea" TextMode="MultiLine"
                                meta:resourcekey="txtB_Address"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtB_Fax1" runat="server" CssClass="textbox" meta:resourcekey="txtB_Fax1"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtB_Fax2" runat="server" CssClass="textbox" meta:resourcekey="txtB_Fax2"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblB_Email1" runat="server" CssClass="label" Text="电子邮件1" meta:resourcekey="lblB_Email1"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblB_Email2" runat="server" CssClass="label" Text="电子邮件2" meta:resourcekey="lblB_Email2"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtB_Email1" runat="server" CssClass="textbox" meta:resourcekey="txtB_Email1"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtB_Email2" runat="server" CssClass="textbox" meta:resourcekey="txtB_Email2"></asp:TextBox>
                        </td>
                    </tr>
                    <tr style="height: 10px;">
                        <td width="180px">
                        </td>
                    </tr>
                </table>
            </div>
            <div id="con_one_4" style="display:none;" >
                <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td width="180px"><asp:Label ID="lblUdf1" runat="server" CssClass="label" Text="自定义字段1" meta:resourcekey="lblUdf3"></asp:Label></td>
                        <td width="180px"><asp:Label ID="lblUdf6" runat="server" CssClass="label" Text="自定义字段6" meta:resourcekey="lblUdf3"></asp:Label></td>
                        <td width="180px"><asp:Label ID="lblRemark" runat="server" CssClass="label" Text="备注" meta:resourcekey="lblRemark"></asp:Label></td>
                        <td width="180px"></td>
                    </tr>
                    <tr>
                        <td width="180px"><asp:TextBox ID="txtUdf1" runat="server" CssClass="textbox" meta:resourcekey="txtUdf2"></asp:TextBox></td>
                        <td width="180px"><asp:TextBox ID="txtUdf6" runat="server" CssClass="textbox" meta:resourcekey="txtUdf2"></asp:TextBox></td>
                        <td width="360px" colspan="2" rowspan="3"><asp:TextBox ID="txtRemark" runat="server" CssClass="largetextarea" 
                                    TextMode="MultiLine" meta:resourcekey="txtRemark"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td width="180px"><asp:Label ID="lblUdf2" runat="server" CssClass="label" Text="自定义字段2" meta:resourcekey="lblUdf3"></asp:Label></td>
                        <td width="180px"><asp:Label ID="lblUdf7" runat="server" CssClass="label" Text="自定义字段7" meta:resourcekey="lblUdf3"></asp:Label></td>
                        
                       
                    </tr>
                    <tr>
                        <td width="180px"><asp:TextBox ID="txtUdf2" runat="server" CssClass="textbox" meta:resourcekey="txtUdf2"></asp:TextBox></td>
                        <td width="180px"><asp:TextBox ID="txtUdf7" runat="server" CssClass="textbox" meta:resourcekey="txtUdf7"></asp:TextBox></td>
                        
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblUdf3" runat="server" CssClass="label" Text="自定义字段3" meta:resourcekey="lblUdf3"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblUdf8" runat="server" CssClass="label" Text="自定义字段8" meta:resourcekey="lblUdf8"></asp:Label>
                        </td>
                        <td width="180px">
                            
                        </td>
                        <td width="180px">
                            
                        </td>
                    </tr>
                    <tr>
                        <td width="180px"><asp:TextBox ID="txtUdf3" runat="server" CssClass="textbox" meta:resourcekey="txtUdf7"></asp:TextBox></td>
                        <td width="180px"><asp:TextBox ID="txtUdf8" runat="server" CssClass="textbox" meta:resourcekey="txtUdf7"></asp:TextBox></td>
                        <td width="180px"></td>
                        <td width="180px"></td>
                    </tr>
                    <tr>
                        <td width="180px">
                        <asp:Label ID="lblUdf4" runat="server" CssClass="label" Text="自定义字段4" meta:resourcekey="lblUdf9"></asp:Label>
                        </td>
                        <td width="180px">
                        <asp:Label ID="lblUdf9" runat="server" CssClass="label" Text="自定义字段9" meta:resourcekey="lblUdf9"></asp:Label>
                        </td>
                        <td width="180px">
                        </td>
                        <td width="180px">
                            
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                        <asp:TextBox ID="txtUdf4" runat="server" CssClass="textbox" meta:resourcekey="txtUdf4"></asp:TextBox>
                        </td>
                        <td width="180px">
                        <asp:TextBox ID="txtUdf9" runat="server" CssClass="textbox" meta:resourcekey="txtUdf9"></asp:TextBox>
                        </td>
                        <td width="180px">
                            
                        </td>
                        <td width="180px">
                            
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblUdf5" runat="server" CssClass="label" Text="自定义字段5" meta:resourcekey="lblUdf5"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblUdf10" runat="server" CssClass="label" Text="自定义字段10" meta:resourcekey="lblUdf10"></asp:Label>
                        </td>
                        <td width="180px">
                            
                        </td>
                        <td width="180px">
                            
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtUdf5" runat="server" CssClass="textbox" meta:resourcekey="txtUdf5"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtUdf10" runat="server" CssClass="textbox" meta:resourcekey="txtUdf10"></asp:TextBox>
                        </td>
                        <td width="180px">
                            
                        </td>
                        <td width="180px">
                            
                        </td>
                    </tr>
                    <tr style="height: 10px;">
                        <td width="180px">
                        </td>
                    </tr>
                </table>
            </div>
            <div id="con_one_5" style="display:none; overflow-x: auto; overflow-y: hidden;">
                <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td>
                            <table>
                                <tr>
                                    <td>
                                        <asp:Button ID="btnAddDetail" runat="server" CssClass="button" Text="<%$ Resources:ButtonResource,btnAddDetail %>"
                                            OnClientClick="javascript: if(document.getElementById('hdnOrderID').value == ''){ SethdnPageQty('hdnPageQty');  if(confirmMsg('F7100_034')) return true; else return false;}"
                                            OnClick="btnAddDetail_Click" meta:resourcekey="btnAddDetail" />
                                    </td>
                                    <td>
                                        <asp:Button ID="btnDeleteDetail" runat="server" CssClass="button" Text="<%$ Resources:ButtonResource,btnDeleteDetail %>"
                                            OnClientClick="javascript:if(confirmMsg('C010')) return true; else return false;"
                                            OnClick="btnDeleteDetail_Click" meta:resourcekey="btnDeleteDetail" />
                                    </td>
                                    <td>
                                    </td>
                                    <td>
                                        <%--<asp:Button ID="btnImportData" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnImportData%>"
                                            OnClientClick="javascript:if(document.getElementById('hdnOrderID').value == ''){  SethdnPageQty('hdnPageQty'); if(confirmMsg('F7100_036')) return true; else return false; }"
                                            OnClick="btnImportData_Click" />--%>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr style="height: 10px;">
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div>
                                <asp:GridView ID="gvSalesOrderDetail" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                                    AllowPaging="True" CssClass="gridview" 
                                    DataKeyNames="ORDERID,LINEID,STATUS" Width="1400px" oninit="gvSalesOrderDetail_Init" 
                                    OnRowDataBound="gvSalesOrderDetail_RowDataBound" OnPageIndexChanging="gvSalesOrderDetail_PageIndexChanging"
                                    OnSorting="gvSalesOrderDetail_Sorting" 
                                    meta:resourcekey="gvSalesOrderDetail" >
                                    <FooterStyle CssClass="GridViewFooterStyle" />
                                    <RowStyle CssClass="GridViewRowStyle" />
                                    <HeaderStyle CssClass="GridViewHeaderStyle" />
                                    <PagerStyle CssClass="GridViewPageStyle" />
                                    <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                    <Columns>
                                        <asp:TemplateField meta:resourcekey="TemplateField">
                                            <HeaderTemplate>
                                                <asp:CheckBox ID="CheckBox1" runat="server" onclick="selectAll(this,'gvSalesOrderDetail');"
                                                    meta:resourcekey="CheckBox1" />
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <asp:CheckBox ID="chbSelect" runat="server" meta:resourcekey="chbSelect" />
                                            </ItemTemplate>
                                            <FooterTemplate>
                                                <asp:CheckBox ID="CheckBox2" runat="server" onclick="selectAll(this,'gvSalesOrderDetail');"
                                                    meta:resourcekey="CheckBox2" />
                                            </FooterTemplate>
                                            <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_40" />
                                            <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_40" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="明细" FooterText="明细" meta:resourcekey="Detail">
                                            <ItemTemplate>
                                                <a href='<%# FormatUrl("SalesOrderDetail.aspx?type=edit&from=list&ID={0}&LineID={1}&OwnerID={2}&SkuID={3}",Eval("ORDERID").ToString(),Eval("LineID").ToString(),Eval("OwnerID").ToString(),Eval("SkuID").ToString()) %>'
                                                    target="_self">
                                                    <img src="../Images/icon_edit.gif" class="img" style="border: none 0px blue;" alt="edit" /></a>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_50" HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:BoundField HeaderText="序号" FooterText="序号" meta:resourcekey="No">
                                            <ItemStyle CssClass="GridViewRowWidth_50" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="SkuID" HeaderText="货品"代码 FooterText="货品代码" SortExpression="SkuID"
                                            meta:resourcekey="SkuID">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:TemplateField FooterText="货品描述" HeaderText="货品描述" SortExpression="SkuDescr"
                                            meta:resourcekey="SkuDescr">
                                            <ItemTemplate>
                                                <asp:Label ID="lblSkuDescr" runat="server" Text='<%# Eval("SkuDescr").ToString() %>'
                                                    meta:resourcekey="lblSkuDescr"></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_200" />
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="PACKID" HeaderText="包装代码" FooterText="包装代码" SortExpression="PACKID"
                                            meta:resourcekey="PACKID">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="UOMID" HeaderText="单位" FooterText="单位" SortExpression="UOMID"
                                            meta:resourcekey="UOMID">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="STATUSD" HeaderText="状态" FooterText="状态" SortExpression="STATUSD"
                                            meta:resourcekey="STATUSD">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:TemplateField FooterText="订货数量" HeaderText="订货数量" SortExpression="ORIGINALQTY"
                                            meta:resourcekey="ORIGINALQTY">
                                            <ItemTemplate>
                                                <asp:Label ID="lblORIGINALQTY" runat="server" Text='<%# GetPreferenceDigit(Eval("ORIGINALQTY").ToString()) %>'
                                                    meta:resourcekey="lblORIGINALQTY"></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:TemplateField>
                                        <asp:TemplateField FooterText="发货数量" HeaderText="发货数量" SortExpression="SHIPPEDQTY"
                                            meta:resourcekey="SHIPPEDQTY">
                                            <ItemTemplate>
                                                <asp:Label ID="lblSHIPPEDQTY" runat="server" Text='<%# GetPreferenceDigit(Eval("SHIPPEDQTY").ToString()) %>'
                                                    meta:resourcekey="lblSHIPPEDQTY"></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:TemplateField>
                                        <asp:TemplateField FooterText="单价" HeaderText="单价" SortExpression="UnitPrice" >
                                            <ItemTemplate>
                                                <asp:Label ID="lblUnitPrice" runat="server" Text='<%# GetPreferenceDigit(Eval("UnitPrice").ToString()) %>'
                                                    meta:resourcekey="lblUnitPrice"></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:TemplateField>
                                        <asp:TemplateField FooterText="总价" HeaderText="总价" SortExpression="ExtendedPrice">
                                            <ItemTemplate>
                                                <asp:Label ID="lblExtendedPrice" runat="server" Text='<%# GetPreferenceDigit(Eval("ExtendedPrice").ToString()) %>'
                                                    meta:resourcekey="lblExtendedPrice"></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="Remark" HeaderText="备注" FooterText="备注" SortExpression="Remark" 
                                            meta:resourcekey="BoundFieldResource3">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                    </Columns>
                                </asp:GridView>
                            </div>
                        </td>
                    </tr>
                    <tr style="height: 30px;">
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <input type="hidden" id="hiddenFlag" />
        <input type="hidden" id="hdnLineID" runat="server" />
        <input type="hidden" id="hdnOrderID" runat="server" />
        <input type="hidden" id="hdnFlag" runat="server" value="0" />
        <input type="hidden" id="hdnCopy" runat="server" />
        <input type="hidden" id="hdnFrom" runat="server" />
        <input type="hidden" id="hdnPageQty" runat="server" value="0" />
        <input type="hidden" id="hdnPageType" runat="server" value="0" />
        <%--</ContentTemplate>
                 <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="btnNew" EventName="Click" />
                    <asp:AsyncPostBackTrigger ControlID="btnSave" EventName="Click" />
                    <asp:AsyncPostBackTrigger ControlID="btnCopy" EventName="Click" />
                </Triggers>
        </asp:UpdatePanel>--%>
    </div>
    <input type="hidden" id="hiddenReportFlag" />
    <input type="hidden" id="hdnDataFormat" runat="server" />
    <input type="hidden" id="hdncalendarFlag" runat="server" />
    <div id="actionDiv" style="background-color: #FFFFFF; position: absolute; display: none;">
        <table width="105" border="0" cellspacing="0" cellpadding="0" id="divcontent_menu2">
            <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                <td class="line" id="tdlnkbtnSalesOrderSubmit" runat="server" visible="false">
                    <asp:LinkButton ID="lnkbtnSalesOrderSubmit" runat="server" Text="提交" 
                        onclick="lnkbtnSalesOrderSubmit_Click" 
                        meta:resourcekey="lnkbtnSalesOrderSubmit" ></asp:LinkButton>
                </td>
            </tr>
            <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                <td class="line" id="tdlnkbtnSalesOrderCancel" runat="server" visible="false">
                    <asp:LinkButton ID="lnkbtnSalesOrderCancel" runat="server" Text="取消" 
                        onclick="lnkbtnSalesOrderCancel_Click" 
                        meta:resourcekey="lnkbtnSalesOrderCancel" ></asp:LinkButton>
                </td>
            </tr>
        </table>
    </div>
    <div id="reportDiv" style="background-color:#FFFFFF; position:absolute;display:none;">
        <table width="105" border="0" cellspacing="0" cellpadding="0" id="divcontent_menu">
         <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
             <td class="line"  id="tdlnkbtnPrintsO" runat="server"  visible="false" >
                 <asp:LinkButton ID="lnkbtnPrintSO" runat="server"  Text="<%$Resources:ButtonResource,lnkbtnPrintSO%>" OnClientClick="popPrintSalesOrder();"  ></asp:LinkButton>
             </td>
         </tr>
        </table>
    </div>
    </form>
</body>
</html>
<script language="javascript" type="text/javascript" event="onclick" for="document">
		<!--
			hiddenDiv();
			hiddenReportDiv();
		    hiddenCalendarDiv();
		//-->
</script>